import request from '../request'

export function getRoleList(params) {
  return request({
    url: '/api/Role/GetList',
    method: 'get',
    params
  })
}

export function addRole(data) {
  return request({
    url: '/api/Role/Add',
    method: 'post',
    data
  })
}

export function updateRole(data) {
  return request({
    url: '/api/Role/Update',
    method: 'put',
    data
  })
}

export function deleteRole(id) {
  return request({
    url: `/api/Role/Delete/${id}`,
    method: 'delete'
  })
} 